package org.edu.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.edu.modules.system.entity.ProcessStep;
import org.edu.modules.system.entity.ProcessType;
import org.edu.modules.system.mapper.ProcessStepMapper;
import org.edu.modules.system.mapper.ProcessTypeMapper;
import org.edu.modules.system.service.IProcessTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author lbh
 * @Date 2025/2/13 上午9:12
 * @Version 1.0
 */
@Slf4j
@Service
public class ProcessTypeServiceImpl extends ServiceImpl<ProcessTypeMapper, ProcessType> implements IProcessTypeService {
    @Autowired
    private ProcessTypeMapper processTypeMapper;


    @Transactional
    public void saveProcessType(ProcessType processType
                                 ) {
        // 保存流程类型
        processTypeMapper.saveProcessType(
                processType.getId(),
                processType.getName(),
                processType.getDescription(),
                processType.getVersion(),
                processType.getIsActive(),
                processType.getShowColumn()
        );


    }
}
